package Capitulo02.Exercicio;

import java.util.Collection;
import java.util.LinkedList;

public class Yikes {

	public static void go(Long n) {
		System.out.println("Long ");
	}

	public static void go(Short n) {
		System.out.println("Short ");
	}

	public static void go(int n) {
		System.out.println("int ");
	}

	static int[] a;
	//static { a[0]=2; }

	public static void main(String[] args) {

		short y = 6;
		long z = 7;
		go(y);
		go(z);

		Integer numero= 6;
		Collection sorted = new LinkedList();
		//sorted.add("B"); sorted.add("C"); sorted.add("A");
		sorted.add(new Integer(1)); sorted.add(new Integer(13)); sorted.add(new Integer(5));

		for (Object obj: sorted) {
			//numero += obj;
			System.out.print(obj + ", ");
		}
	}

}
